// $Id: loggercountrequesthtl.h 65 2004-10-27 21:44:50Z hansemil $
#ifndef LOGGERCOUNTREQUESTHTL_H
#define LOGGERCOUNTREQUESTHTL_H

#include "loggercount.h"
#include "eos.h"
#include <fstream>

/**
 * @todo Write documentation
 * @test Check that it does what it's suppose to. Especially the failed requests... They seem very unlikely at times.
 */
class LoggerCountRequestHTL : public LoggerCount {
public:
	LoggerCountRequestHTL();
	void eos_simulate_start(void *);
	void eos_simulate_stop(void *);
	void clock_tick(unsigned int);
	void node_routeFile(void *, void *, void *, unsigned char);

private:
	Eos *m_eos;
	std::fstream m_fout;
	std::vector<int> m_sizeList;
	int m_sizeListSum;
	int m_failedCount;
};

#endif
